package edu.mcw.rgd.clinminer.web;

import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Component;

import com.vaadin.data.Item;

public interface EntityEditor extends Component {

    public void addSaveActionListener(ClickListener listener);

    public void addDeleteActionListener(ClickListener listener);

    public void setSaveAllowed(boolean enabled);

    public void setDeleteAllowed(boolean enabled);

    public void commit();

    public void setItemDataSource(Item item);

    public Item getItemDataSource();

    public void setCommitErrorMessage(String message);

	public void focus();

    public void refresh();

    public boolean isModified();

	public void setDefaults();

	public void saveDefaults();
}
